package com.leyou.domain.vo;

import java.io.Serializable;

/**
 * @Author lixin
 * @Date 2018/10/25 16:46
 * @Version 1.0
 * @Description TODO
 **/
public class PageVO implements Serializable {

    private static final long serialVersionUID = -3231924640475630977L;

//    @JSONField(name = "page_num")
    Integer pageNum;

//    @JSONField(name = "page_size")
    Integer pageSize;


    public PageVO() {
    }

    public PageVO(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }


    public Integer getPageBegin() {
        return (pageNum - 1) * pageSize;
    }


    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
